﻿using SF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SF.Ucenter.admin.finance
{
    public partial class settlement_dialog_print : System.Web.UI.Page
    {
        protected string action = string.Empty;
        protected string keywords = string.Empty;

        protected string settleNum = string.Empty;
        protected Model.sf_finance_settlement model = new Model.sf_finance_settlement();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.action = DTRequest.GetQueryString("action");
            this.settleNum = DTRequest.GetQueryString("settleNum");
            if (string.IsNullOrEmpty(this.settleNum) == false)
            {
                BLL.sf_finance_settlement bll = new BLL.sf_finance_settlement();
                model = bll.GetModel(this.settleNum);
            }

            RptBind(" sf_finance_settlement_num = '" + settleNum + "' and  id>0", "id desc");
        }

        #region 数据绑定=================================
        private void RptBind(string _strWhere, string _orderby)
        {
            BLL.sf_business_settlement bll = new BLL.sf_business_settlement();
            this.rptList.DataSource = bll.GetListByPage(_strWhere, "", 0, 100000);
            this.rptList.DataBind();
        }
        #endregion
    }
}